<div id="modal-editar-usuario-<?php echo $this->usuario->id ?>" class="modal hide fade" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h1>Editar <small>Usu&aacute;rio #<?php echo $this->usuario->id ?></small></h1>

    </div>
    <div class="modal-body">

        <?php if (!empty($this->msg)): ?>
            <div class="alert alert-success alert-dismissable">
                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                <?php echo $this->msg; ?>
            </div>
        <?php endif; ?>

        <div class="alert alert-danger alert-dismissable alert-confirmacao" style="display:none">
            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
            A confirma&ccedil&atilde;o de senha est&aacute; incorreta.
        </div>    

        <form action="<?php echo $this->baseUrl() ?>/usuario/editar" class="form-horizontal forms" role="form" method="post">
            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><i class="icon-envelope"></i></span> 
                        <input type="hidden" class="form-control id-cliente" name="id" value="<?php echo $this->usuario->id ?>">
                        <input type="email" class="form-control" name="email" placeholder="Email" maxlength="80" value="<?php echo $this->usuario->email ?>" title="O email será o login de acesso" data-placement="right" required>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><i class="icon-user"></i></span> 
                        <input type="text" class="form-control" name="nome" placeholder="Nome" maxlength="80" value="<?php echo $this->usuario->nome ?>" title="Digite seu nome" required>
                    </div>
                </div>
            </div>    

            <div class="form-group">
                <div class="col-sm-10">
                    <label class="radio">
                        <?php $sessionRole = new Zend_Session_Namespace('role');?>
                        <input type="radio" name="Perfil_id" value="<?php echo TipoUsuario::USUARIO ?>" <?php echo $this->usuario->Perfil_id == TipoUsuario::USUARIO ? 'checked' : ''?>  <?php echo unserialize($sessionRole->usuario)->Perfil_id != TipoUsuario::ADMINISTRADOR ? 'disabled="disabled"' : ''?> >
                        Usuário
                    </label>
                    <label class="radio">
                        <input type="radio" name="Perfil_id" value="<?php echo TipoUsuario::ADMINISTRADOR ?>" <?php echo $this->usuario->Perfil_id == TipoUsuario::ADMINISTRADOR ? 'checked' : ''?>  <?php echo unserialize($sessionRole->usuario)->Perfil_id != TipoUsuario::ADMINISTRADOR ? 'disabled="disabled"' : ''?>>
                        Administrador
                    </label>    
                </div>
            </div> 

            <div class="form-group">
                <div class="col-sm-10">
                    <div class="input-prepend input-append">
                        <span class="add-on"><i class="icon-qrcode"></i></span> 
                        <input type="password" class="form-control" name="senha" id="senha" placeholder="Senha" title="Digite sua senha" value="<?php echo $this->usuario->senha ?>" maxlength="20" required>
                    </div>
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10 btns-form">
                    <button type="submit" class="btn btn-large btn-primary">Salvar</button>
                    <button type="reset" class="btn btn-large btn-default">Limpar</button>
                </div>
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Fechar</button>
    </div>
</div>    